package com.liming.salesman.entities;

import com.liming.core.impl.persistence.PersistentEntity;
import com.liming.salesman.api.persistence.ISalesmanBean;

import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;


/**
 * @类描述： 销售顾问实体类
 * @创建人：sunlf
 * @创建时间：2014-3-27 下午1:01:59
 * @修改人：sunlf
 * @修改时间：2014-3-27 下午1:01:59
 * @修改备注：
 */
@Entity
@Table(name = "salesman")
@Inheritance(strategy = InheritanceType.JOINED)
@XmlRootElement
public class SalesmanBeanImpl extends PersistentEntity implements ISalesmanBean {

    //用户真实姓名
    private String name;
    //用户账号
    private String loginName;
    //用户密码
    private String password;
    //用户邮箱
    private String email;
    //是否有效
    private boolean isEnable;
    //性别
    private String sex;
    //经销商名称
    private String distributor;

    public SalesmanBeanImpl() {

    }

    @Override
    public String getLoginName() {
        return loginName;
    }

    @Override
    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    @Override
    public boolean isEnable() {
        return isEnable;
    }

    @Override
    public void setEnable(boolean isEnable) {
        this.isEnable = isEnable;
    }

    @Override
    public String getSex() {
        return sex;
    }

    @Override
    public void setSex(String sex) {
        this.sex = sex;
    }

    @Override
    public String getDistributor() {
        return distributor;
    }

    @Override
    public void setDistributor(String distributor) {
        this.distributor = distributor;
    }

    @Override
    public String getEmail() {
        return email;
    }

    @Override
    public void setEmail(String email) {
        this.email = email;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String getPassword() {
        return password;
    }

    @Override
    public void setPassword(String password) {
        this.password = password;
    }


}
